<?php
    echo $this->Html->script('jquery-1.9.1');
    echo $this->Html->script('jquery-ui-1.10.2.custom');
    echo $this->Html->script('ui.multiselect');
?>
<form id="frmCadastroServicos" action="/siscel/instituicaoLabs/servicos/<?php echo $id ?>" method="post">
    <table style="width:900px;">
        <tr>
            <td>
                <?php echo $this->Form->input('servicos', array('type' => 'select', 'class'=>'multiselect', 'multiple'=>'multiple', 'label' => 'Servicos', 'id' => 'servicos', 'options' => $arrServicos, 'selected'=>$arrServicosMarcados )); ?>
            </td>
        </tr>
        <tr>
            <td>
                <div class="submit">
                    <input  type="submit" value="Enviar"/>
                </div>
            </td>
        </tr>
    </table>
</form>
<script type="text/javascript">
$(function(){
  // choose either the full version
    //$.localise('ui-multiselect', {/*language: 'en',*/ path: '../../app/webroot/js/locale/'});
    $(".multiselect").multiselect({sortable: true, searchable: false});
    $(".ui-multiselect").css('width','99%');
    $(".selected").css('width','49%');
    $(".available").css('width','49%');

});
</script>